<?php

$id = $_GET['id'];

$sql = "select * from message where id='$id'";